<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>Document</title>
		<style type="text/css">
			form{
				width:320px;
			
				margin:0px auto;
				margin-top:10px;
				
			}
			div{
				overflow:hidden;
			}
			div p{
				float:left;
			}
			div.type input{
				margin-top:18px;
			}
			div.miaoshu input{
				line-height:22px;
			}
			div input{
				margin-top:13px;
			}
			.button{
				margin-left:30px;
			}
			.button input{
				margin-top:20px;
				color:#fff;
				background-color:#B87354;
				padding-right:10px;
				cursor: pointer;
				border:0px;
				border-radius:5px;
				width:80px;
				height:30px;			
			}
			.button input:hover{
				background-color: #AA895E;
			}
		</style>
		
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				//让状态选中
				$(":radio[name='type'][value='${lpt.lpttype}']")[0].checked=true;
				
			})
		</script>
	</head>
	<body>
	<%@ include file="/HT/login_control.jsp" %>
			<h1 style="text-align:center">修改轮播图</h1>
			<form action="/Vancl/doupdatelunbo.shtml" method="post" enctype="multipart/form-data">
				<input type="hidden" value="${lpt.lptid }" name="id">   			
    			<div class="miaoshu">
    				<p>描述：</p>
    				<input type="text" name="miaoshu" value="${lpt.lptmiaoshu }">
    			</div>
    			<div class="type">
    				<p>显示状态：</p>
    				<input type="radio" name="type" value="0">未显示
    				<input type="radio" name="type" value="1">已显示
    			</div>
    			<div class="picture">
    				<p>缩略图：</p>
    				<img src="HT/images/lunbo/${lpt.lptimage }" width="100px" name="shangchuan">
    				<input type="hidden" name="photo" value="${lpt.lptimage }" id="photo" />
    			</div>
    			<div class="shangchuan">
    				<p>上传图片：</p>
    				<input type="file" name="shangchuan">
    			</div>
    			<div class="button">
    				<input type="submit" value="修改">&emsp;&emsp;<input type="reset" value="重置">
    			</div>
    		</form>
	</body>
</html>
